import 'package:dio/dio.dart';

import 'code_msg_model.dart';

abstract class BusinessResponse{
  //取消网络请求
  CancelToken onGetCancelToken();
  ///接口请求成功
  ///d 网络请求接口返回的data里的数据
  void onSuccess<D>(D d,String apiPath);
  ///接口请求token过期
  void onLogOut(CodeMsgModel baseResponseModel);
  ///接口请求失败
  void onFail(CodeMsgModel baseResponseModel);
}